const _stringUtils = require('../utils/stringUtils');
module.exports = class {
    constructor(app) {
        this.app = app;
    }

    getDeviceId(device) {
        const {deviceSpecCode='', deviceCode, tenantCode} = device;
        return _stringUtils.getDevId(deviceSpecCode, deviceCode) + '/' + tenantCode;
    }
};
